//分类相关数据ts类型

export interface ResponseData {
  code: number
  message: string
  ok: boolean
}

export interface CategoryObj {
  id: number | string
  name: string
  category1Id?: number
  category2Id?: number
}

export interface CategoryResponseData extends ResponseData {
  data: CategoryObj[]
}

//属性语值性值的ts类型
export interface AttValue {
  id?: number
  valueName: string
  attrId?: number
  flag?: boolean
}
//存储每一个属性值的数字类型
export type attrValueList = AttValue[]

//属性对象
export interface Attr {
  id?: number | string
  flag?: boolean
  attrName: string
  categoryId: number | string
  categoryLevel: number
  attrValueList: attrValueList
}
//存储每一个属性对象的数字ts类型
export type attrList = Attr[]
//属性接口返回得到ts类型
export interface AttrResponseData extends ResponseData {
  data: Attr[]
}
